const express = require('express');

// 创建路由对象
const router = express.Router();

// 挂载路由
router.get('/user/list', (req, res) => res.send('List get method'));
router.post('/user/add', (req, res) => res.send('Add post method'));

// 导出路由
module.exports = router;
